package com.wu.common.utils;

/**
 * Redis Key管理
 *
 * @author wzd 
 */
public class RedisKeys {

    /**
     * 验证码Key
     */
    public static String getCaptchaKey(String key) {
        return "sys:captcha:" + key;
    }

    /**
     * 授权码Key
     */
    public static String getOauthCode(String code) {
        return "oauth:code:" + code;
    }

    /**
     * 微信小程序授权key
     *
     * @param key
     * @return
     */
    public static String getWxMpAuthKey(String key) {
        return "wx:mp:auth:" + key;
    }

    /**
     * 微信小程序授权类型key
     *
     * @param key
     * @return
     */
    public static String getWxMpAuthTypeKey(String key) {
        return "wx:mp:auth:type:" + key;
    }

    /**
     * 微信公众号集合key
     *
     * @param key
     * @return
     */
    public static String getWxAccountMpKey(String key) {
        return "wx:mp:account:RES_KEY_WX_ACCOUNT_MAP";
    }

}
